home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / swagd_f.zip / DRIVES.SWG / 0037_Get Disk Verify State.pas < prev    next >
Pascal/Delphi Source File  |  1993-08-18  |  787b  |  26 lines

  1. { Gets disk verify state flag.
  2.   Part of the Heartware Toolkit v2.00 (HTdisk.PAS) for Turbo Pascal.
  3.   Author: Jose Almeida. P.O.Box 4185. 1504 Lisboa Codex. Portugal.
  4.           I can also be reached at RIME network, site ->TIB or #5314.
  5.   Feel completely free to use this source code in any way you want, and, if
  6.   you do, please don't forget to mention my name, and, give me and Swag the
  7.   proper credits. }
  8.  
  9. FUNCTION Verify_State : boolean;
  10. { DESCRIPTION:
  11.     Gets disk verify state flag.
  12.   SAMPLE CALL:
  13.     B := Verify_State;
  14.   RETURNS:
  15.     TRUE  = on: verify after write
  16.     FALSE = off: no verify after write }
  17.  
  18. var
  19.   HTregs : registers;
  20.  
  21. BEGIN { Verify_State }
  22.   HTregs.AH := $54;
  23.   MsDos(HTregs);
  24.   Verify_State := HTregs.AL = $01;
  25. END; { Verify_State }
  26.